<template>
  <div>
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="添加用户" name="first">
          <input type="text">
      </el-tab-pane>
      <el-tab-pane label="更新用户" name="second">
          <input type="text">
          <input type="text">
      </el-tab-pane>
    </el-tabs>

    <el-button type="primary">确定</el-button>
    <el-button>重置</el-button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      activeName: "second",
    };
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    },
  },
};
</script>

<style>
</style>